package com.pomr.service.synthesize;

import java.util.List;

import com.pomr.model.synthesize.Linkman;
import com.pomr.model.sys.User;
import com.pomr.util.page.Page;

public interface LxrService {
	/**
	 * 通过厂商id获取联系人列表
	 * @param mid 厂商id
	 * @param page
	 * @param limit
	 * @throws Exception
	 */
	public Page<List<Linkman>> searchLxrsByMid(String mid, String page, String limit, User user) throws Exception;
	
	/**
	 * 更新联系人信息
	 * @param lxr
	 * @return
	 * @throws Exception
	 */
	public boolean editLxr(Linkman lxr) throws Exception;
	
	/**
	 * 添加联系人
	 * @param lxr
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public boolean addLxr(Linkman lxr, User user) throws Exception;
	
	/**
	 * 通过id批量删除联系人
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public boolean deleteLxrs(String ids) throws Exception;

}
